<?php 
	defined('_JEXEC') or die('Restricted access');
	$db =& JFactory::getDBO();
	$catid = 35;
	$q = "SELECT * FROM #__categories WHERE `id` = $catid";
	$db->setQuery($q);
	$category = $db->loadObjectList();
	$q = "SELECT * FROM #__content WHERE `catid` = $catid AND (`publish_down` = 0 OR `publish_down` >= NOW())";
	$db->setQuery($q);
	$contents = $db->loadObjectList();
	$lg = &JFactory::getLanguage();
	$mylang = $lg->get('backwardlang');
	/*echo "<pre>";
	var_dump($contents);
	echo "</pre>";
	exit;*/
?>
<div class="containerUnder">
	<div class="pressLeft">
		<div class="mainTitle"><?php echo $category[0]->title; ?></div>
		<img src="<?php echo JURI::base();?>images/stories/<?php echo $category[0]->image;?>" alt=""/>
	</div>
	<div class="pressRight">
		<?php for($i=0;$i<count($contents);$i++){
			echo $contents[$i]->introtext.$contents[$i]->fulltext;?>
			<div class="pressLine"></div>
		<?php } ?>
		<?php
		if($mylang=="english") {
		?>
		<a href="http://109.202.134.206:64999/Login" target="blank"><img src="<?php echo JURI::base()?>templates/rhuk_milkyway/images/bt_presse_login.png" alt=""/></a>
		<?php
		} else { 
		?>
		<a href="http://109.202.134.206:64999/Login" target="blank"><img src="<?php echo JURI::base()?>templates/rhuk_milkyway/images/bt_presse_login-2.png" alt=""/></a>
		<?php
		}
		?>
		
	</div>
	
	<div class="clr"></div>
</div>